﻿
namespace ICore
{
    public interface IRepository<TEntity> where TEntity : PersistentObject<long>
    {
        TEntity GetById(long id);
        void Save(TEntity eontity);
        TEntity[] GetAll();
        void Delete(long id);
        void Add(TEntity entity);
    }
}